/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.example.demo.mapper;

import com.example.demo.entity.SysUser;
import com.example.demo.entity.User;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 *
 * @author danny
 */
@Mapper
public interface UserMapper {
    
    @Select("select uname as name from users where uid=#{id}")
    User selectOneById(int id);
    
    @Select("select * from sys_user")
    List<SysUser> selectAll();
}
